package com.huadao.cart_ccs.data.task;

import java.io.Serializable;

public class CleanPipesTask extends OperateTask implements Serializable{

    private static final long serialVersionUID = -8261937707131650051L;
    //    private int singleAmount;
    private int fluidAmount;
    private int wasteAmount;

    private int cleanNumbers;//清洗次数
    private int loopTime;//秒

    private String taskName;

    private int fluidSpeed;
    private int circlingSpeed;
    private int wasteSpeed;

    private LiquidLoopTask inputLiquidTask;
    private LiquidLoopTask wasteTask;
    private LiquidLoopTask circlingTask;

    private int currentCleanNumber;

    //是否终止任务
    private boolean isTerminate;

    public CleanPipesTask(int fluidAmount, int wasteAmount, int cleanNumbers, int loopTime, int fluidSpeed, int circlingSpeed, int wasteSpeed) {
        this.fluidAmount = fluidAmount;
        this.wasteAmount = wasteAmount;
        this.cleanNumbers = cleanNumbers;
        this.loopTime = loopTime;
        this.fluidSpeed = fluidSpeed;
        this.circlingSpeed = circlingSpeed;
        this.wasteSpeed = wasteSpeed;
    }

    public int getCleanNumbers() {
        return cleanNumbers;
    }

    public void setCleanNumbers(int cleanNumbers) {
        this.cleanNumbers = cleanNumbers;
    }

    public int getLoopTime() {
        return loopTime;
    }

    public void setLoopTime(int loopTime) {
        this.loopTime = loopTime;
    }

    public LiquidLoopTask getInputLiquidTask() {
        return inputLiquidTask;
    }

    public void setInputLiquidTask(LiquidLoopTask inputLiquidTask) {
        this.inputLiquidTask = inputLiquidTask;
    }

    public LiquidLoopTask getWasteTask() {
        return wasteTask;
    }

    public void setWasteTask(LiquidLoopTask wasteTask) {
        this.wasteTask = wasteTask;
    }

    public LiquidLoopTask getCirclingTask() {
        return circlingTask;
    }

    public void setCirclingTask(LiquidLoopTask circlingTask) {
        this.circlingTask = circlingTask;
    }

    public int getCurrentCleanNumber() {
        return currentCleanNumber;
    }

    public void setCurrentCleanNumber(int currentCleanNumber) {
        this.currentCleanNumber = currentCleanNumber;
    }

    public void finishOneClean(){
        currentCleanNumber++;
    }

    public boolean isFinishAllClean(){
        return cleanNumbers==currentCleanNumber;
    }

    public int getFluidSpeed() {
        return fluidSpeed;
    }

    public void setFluidSpeed(int fluidSpeed) {
        this.fluidSpeed = fluidSpeed;
    }

    public int getCirclingSpeed() {
        return circlingSpeed;
    }

    public void setCirclingSpeed(int circlingSpeed) {
        this.circlingSpeed = circlingSpeed;
    }

    public int getWasteSpeed() {
        return wasteSpeed;
    }

    public void setWasteSpeed(int wasteSpeed) {
        this.wasteSpeed = wasteSpeed;
    }

    public int getFluidAmount() {
        return fluidAmount;
    }

    public void setFluidAmount(int fluidAmount) {
        this.fluidAmount = fluidAmount;
    }

    public int getWasteAmount() {
        return wasteAmount;
    }

    public void setWasteAmount(int wasteAmount) {
        this.wasteAmount = wasteAmount;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public boolean isTerminate() {
        return isTerminate;
    }

    public void setTerminate(boolean terminate) {
        isTerminate = terminate;
    }
}
